import * as svgCaptcha from 'svg-captcha'
export class SvgCaptcha {
    constructor() {}

    public static create(options = {}) {
        const {
            mathMin= 1,
            mathMax= 9,
            width= 110,
            height= 35,
            fontSize= 40,
            background= '#f3af22',
        } = options as any;
        return svgCaptcha.create({ mathMin, mathMax, width, height, fontSize, background });
    }
}